import logging
import time 

logging.basicConfig(level=logging.INFO,
                    filename="./logfile/{}.log".format(time.strftime("%Y-%m-%d")),
                    filemode="w",
                    format="%(asctime)s-%(filename)s[line:%(lineno)d]-%(levelname)s:%(message)s")